package com.zhangdi.zddemo.thread;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author zhangdi
 * @version 1.0
 * @date 2022.6.27 15:43
 */
public class AtomicDemo {
    public static void main(String[] args) {
        AtomicInteger CURR_PAGE = new AtomicInteger(0);
        System.out.println(CURR_PAGE.get());
        System.out.println(CURR_PAGE.incrementAndGet());
    }
}
